

package com.vimi8.ebb.auth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by think on 2016/12/15.
 */
@ApiModel("员工DTO")
public class EmployeeDTO {


    private String id;
    private String name;//姓名
    private String phone;//电话
    private String addressCode;//地址code
    private String addressDetail;//地址详情
    private int employeeNum;//员工数量
    private int poorPelpleNum;//贫困户人口
    private int poorFamilyNum;//贫困户数
    private int isPoor;//是否贫困户
    private String job;//员工属性角色
    private String isFreeze;//员工状态，是否冻结


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EmployeeDTO that = (EmployeeDTO) o;

        if (employeeNum != that.employeeNum) return false;
        if (poorPelpleNum != that.poorPelpleNum) return false;
        if (poorFamilyNum != that.poorFamilyNum) return false;
        if (isPoor != that.isPoor) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false;
        if (addressCode != null ? !addressCode.equals(that.addressCode) : that.addressCode != null) return false;
        if (addressDetail != null ? !addressDetail.equals(that.addressDetail) : that.addressDetail != null)
            return false;
        if (job != null ? !job.equals(that.job) : that.job != null) return false;
        return isFreeze != null ? isFreeze.equals(that.isFreeze) : that.isFreeze == null;

    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (addressCode != null ? addressCode.hashCode() : 0);
        result = 31 * result + (addressDetail != null ? addressDetail.hashCode() : 0);
        result = 31 * result + employeeNum;
        result = 31 * result + poorPelpleNum;
        result = 31 * result + poorFamilyNum;
        result = 31 * result + isPoor;
        result = 31 * result + (job != null ? job.hashCode() : 0);
        result = 31 * result + (isFreeze != null ? isFreeze.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "EmployeeDTO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", addressCode='" + addressCode + '\'' +
                ", addressDetail='" + addressDetail + '\'' +
                ", employeeNum=" + employeeNum +
                ", poorPelpleNum=" + poorPelpleNum +
                ", poorFamilyNum=" + poorFamilyNum +
                ", isPoor=" + isPoor +
                ", job='" + job + '\'' +
                ", isFreeze='" + isFreeze + '\'' +
                '}';
    }

    public EmployeeDTO() {
    }

    public EmployeeDTO(String id, String name, String phone, String addressCode, String addressDetail, int employeeNum, int poorPelpleNum, int poorFamilyNum, int isPoor, String job, String isFreeze) {

        this.id = id;
        this.name = name;
        this.phone = phone;
        this.addressCode = addressCode;
        this.addressDetail = addressDetail;
        this.employeeNum = employeeNum;
        this.poorPelpleNum = poorPelpleNum;
        this.poorFamilyNum = poorFamilyNum;
        this.isPoor = isPoor;
        this.job = job;
        this.isFreeze = isFreeze;
    }

    public String getId() {

        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /**
     * 员工姓名.
     * @return userId
     **/
    @ApiModelProperty(value = "员工姓名.")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    /**
     * 电话.
     * @return userId
     **/
    @ApiModelProperty(value = "电话.")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    /**
     * 地址.
     * @return userId
     **/
    @ApiModelProperty(value = "地址.")
    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }


    /**
     * 地址详情.
     * @return userId
     **/
    @ApiModelProperty(value = "地址详情.")
    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }


    /**
     * 员工数.
     * @return userId
     **/
    @ApiModelProperty(value = "员工数.")
    public int getEmployeeNum() {
        return employeeNum;
    }

    public void setEmployeeNum(int employeeNum) {
        this.employeeNum = employeeNum;
    }


    /**
     * 贫困人数.
     * @return userId
     **/
    @ApiModelProperty(value = "贫困人数.")
    public int getPoorPelpleNum() {
        return poorPelpleNum;
    }

    public void setPoorPelpleNum(int poorPelpleNum) {
        this.poorPelpleNum = poorPelpleNum;
    }


    /**
     * 贫困户数.
     * @return userId
     **/
    @ApiModelProperty(value = "贫困户数.")
    public int getPoorFamilyNum() {
        return poorFamilyNum;
    }

    public void setPoorFamilyNum(int poorFamilyNum) {
        this.poorFamilyNum = poorFamilyNum;
    }


    /**
     * 是否是贫困户.
     * @return userId
     **/
    @ApiModelProperty(value = "是否是贫困户.")
    public int getIsPoor() {
        return isPoor;
    }

    public void setIsPoor(int isPoor) {
        this.isPoor = isPoor;
    }


    /**
     * 角色.
     * @return userId
     **/
    @ApiModelProperty(value = "角色.")
    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }


    /**
     * 是否冻结.
     * @return userId
     **/
    @ApiModelProperty(value = "是否冻结.")
    public String getIsFreeze() {
        return isFreeze;
    }

    public void setIsFreeze(String isFreeze) {
        this.isFreeze = isFreeze;
    }
}
